package com.snowher.play.service.impl;

import com.snowher.play.entity.UserAccessEntity;
import com.snowher.play.mapper.dao.IUserDao;
import com.snowher.play.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Author: by HeJingzhou on 2018/9/25 11:10.
 * <p>
 * Company: 北京天创时代信息技术有限公司
 * <p>
 * Email: tcowork@163.com
 * <p>
 * 应用:
 *
 * @author 贺景洲
 */
@Service
public class UserServiceImpl implements IUserService {

    @Resource
    private IUserDao mUserDao;

    @Override
    public int registerUser(UserAccessEntity register) {
        return mUserDao.insertUser(register);
    }

    @Override
    public List<UserAccessEntity> loginUser(UserAccessEntity login) {
        return mUserDao.selectUser(login);
    }
}
